package com.hex.ds.hdrs.warn.dao;


import com.hex.bigdata.hbda.base.BaseDao;
import com.hex.ds.hdrs.warn.po.WarnSendMethod;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @Package: com.hex.ds.hdrs.warn.dao
 * @ClassName WarnSendMethodDao
 * @Description: 告警发送方式dao
 * @Author: ji.tang
 * @Date 2022/4/28 15:59
 * @Version v1.0
 **/
@Repository
public class WarnSendMethodDao extends BaseDao {

    public void insert(WarnSendMethod warnSendMethod){
        this.insert("com.hex.ds.hdrs.warn.dao.WarnSendMethodDao.insert",warnSendMethod);
    }

    public List<WarnSendMethod> selectAll(Map map){
        return this.selectList(WarnSendMethod.class,"com.hex.ds.hdrs.warn.dao.WarnSendMethodDao.selectAll",map);
    }

    public void edit(WarnSendMethod warnSendMethod) {
        this.update("com.hex.ds.hdrs.warn.dao.WarnSendMethodDao.edit",warnSendMethod);
    }
}
